﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace SportsStoreLogService
{
  internal static class ExceptionHelper
  {
    public static bool MustBeRethrown(this Exception exception)
    {
      if (exception is StackOverflowException || exception is ThreadAbortException ||
          exception is OutOfMemoryException)
        return true;
      else
        return false;
    }
  }
}